<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

class UserOauth extends Model
{
	use HasDateTimeFormatter;

    protected $table = 'user_oauths';


    protected $fillable = [
        'user_id',
        'openid',
        'nickname',
        'avatar',
        'sex',
        'platform',
        'oauth'
    ];


    protected $attributes = [
        'avatar' => '',
        'nickname' => '',
        'openid' => '',
        'user_id' => 0,
        'sex' => 1,
    ];

}
